/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import Objects.Album;
import Objects.Comment;
import Objects.Image;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author tinvukhac
 */
@Remote
public interface myPhotoBeanRemote {
    public List<Album> getAlbumListByUserId(int userId) throws Exception;
    public List<Image> getImageListByAlbumId(String albumId) throws Exception;
    public List<Comment> getCommentListByImageId(String imageId) throws Exception;
    public String getAlbumNameByAlbumId(String albumId) throws Exception;
    public void insertNewComment(String imageId, String userId, String contents, String date) throws Exception;
    public void insertNewReport(String commentId, String userId) throws Exception;
    public boolean checkCommentWasDislikeByUser(String commentId, String userId) throws Exception;
    public int getNumberOfImagesInAlbum(int albumId, int userId) throws Exception;
    public Album getAlbumFromAlbumId(int albumId) throws Exception;
}
